//
//  SMACAstroChoiceController.swift
//  SmiraAiChat
//
//  Created by mumu on 2024/9/23.
//

import UIKit

class SMACAstroChoiceController: UIViewController {
   
    lazy var astr0Btn_SMAC: UIButton =  UIButton.init()
    lazy var astr1Btn_SMAC: UIButton =  UIButton.init()
    lazy var astr2Btn_SMAC: UIButton =  UIButton.init()
    lazy var astr3Btn_SMAC: UIButton =  UIButton.init()
    
    lazy var saveBtn_SMAC: UIButton = {
        let saveBtn = UIButton.init()
        saveBtn.layer.cornerRadius = 12
        saveBtn.backgroundColor = UIColor(red: 0.02, green: 0.02, blue: 0.02, alpha: 1)
        saveBtn.setTitle("Save", for: .normal)
        saveBtn.setTitleColor( .white, for: .normal)
        saveBtn.titleLabel?.font =  UIFont(name: "HarmonyOS Sans Medium", size: 16)
        return saveBtn
    }()
    
    lazy var dismissBtn_SMAC: UIButton = {
        let btn = UIButton.init()
        btn.setImage(UIImage.init(named: "icon_close"), for: .normal)
        btn.addTarget(self, action: #selector(dismissLast_AMSC), for: .touchUpInside)
        return btn
    }()
    
  
    override func viewDidLoad() {
        super.viewDidLoad()
        astr0Btn_SMAC.layer.cornerRadius = 20
        astr0Btn_SMAC.backgroundColor = UIColor(red: 0.98, green: 0.96, blue: 0.93, alpha: 1)
        astr0Btn_SMAC.setImage(UIImage.init(named: ""), for: .normal)
        
        
        astr1Btn_SMAC.layer.cornerRadius = 20
        astr1Btn_SMAC.backgroundColor = UIColor(red: 0.98, green: 0.96, blue: 0.93, alpha: 1)
        astr1Btn_SMAC.setImage(UIImage.init(named: ""), for: .normal)
        
        astr2Btn_SMAC.layer.cornerRadius = 20
        astr1Btn_SMAC.backgroundColor = UIColor(red: 0.98, green: 0.96, blue: 0.93, alpha: 1)
        astr2Btn_SMAC.setImage(UIImage.init(named: ""), for: .normal)
        astr3Btn_SMAC.layer.cornerRadius = 20
        astr3Btn_SMAC.backgroundColor = UIColor(red: 0.98, green: 0.96, blue: 0.93, alpha: 1)
        astr3Btn_SMAC.setImage(UIImage.init(named: ""), for: .normal)
        
        let aititle = UILabel.init()
        aititle.text = "Dress Up My Planet"
        aititle.font = UIFont(name: "HarmonyOS Sans Bold", size: 18.x_bili)
        aititle.textAlignment = .left
        
        
        let aititle1 = UILabel.init()
        aititle1.text = "Style My Astronaut"
        aititle1.font = UIFont(name: "HarmonyOS Sans Bold", size: 18.x_bili)
        aititle1.textAlignment = .right
        
        view.backgroundColor = UIColor(red: 0, green: 0, blue: 0, alpha: 0.7000)
        
        let whiteBg = UIView.init()
        whiteBg.backgroundColor = .white
        whiteBg.layer.cornerRadius = 32
        whiteBg.layer.masksToBounds = true
        
        view.addSubview(whiteBg)
        whiteBg.addSubview(dismissBtn_SMAC)
        
        whiteBg.addSubview(astr0Btn_SMAC)
        whiteBg.addSubview(astr1Btn_SMAC)
        whiteBg.addSubview(astr2Btn_SMAC)
        whiteBg.addSubview(astr3Btn_SMAC)
        whiteBg.addSubview(saveBtn_SMAC)
      
        
        astr0Btn_SMAC.addTarget(self, action: #selector(choiceastro(button_SMAC:)), for: .touchUpInside)
        astr1Btn_SMAC.addTarget(self, action: #selector(choiceastro(button_SMAC:)), for: .touchUpInside)
        astr2Btn_SMAC.addTarget(self, action: #selector(choiceastro(button_SMAC:)), for: .touchUpInside)
        astr3Btn_SMAC.addTarget(self, action: #selector(choiceastro(button_SMAC:)), for: .touchUpInside)
        
        saveBtn_SMAC.addTarget(self, action: #selector(sureChange), for: .touchUpInside)
    }
    

   
   
    @objc func choiceastro(button_SMAC:UIButton)  {
       
    }

    @objc func dismissLast_AMSC() {
        
    }
    
    @objc func sureChange()  {
        
    }
}
